.ant-form-item {
  margin-bottom: 10px;
  .ant-form-item-label {
    & > label {
      color: #fff;
    }
  }

  // 隐藏提示
  .ant-form-item-explain-error {
    display: none;
  }
}

.ant-input {
  background-color: transparent;
  box-shadow: 0 0 7px 1px rgba(33, 152, 235, 0.3) inset;
  border: 1px solid #1197f3;
  border-radius: 5px;

  &[disabled]{
    border-color: #1197f3;
    color: #aaa;
    box-shadow: 0 0 7px 1px rgba(33, 152, 235, 0.3) inset;
    &:hover{
      border-color: #1197f3;
    }
  }
  &:focus{
    border: 1px solid #ffb315;
    box-shadow: 0 0 15px 2px rgba(255, 179, 21, 0.27) inset;
    color: #fff;
  }
}

// 输入框颜色
.ant-input {
  color: #1197f3;
}

// 单选框
.ant-radio {
  &::after {
    display: none;
  }
  .ant-radio-inner {
    // opacity: 0;
    width: 20px;
    height: 20px;
    background: url('@/assets/images/common-radio-n.png');
    border: none;
    box-shadow: none;
    background-size: 100% 100%;
  }
  &.ant-radio-checked {
    .ant-radio-inner {
      border-color: transparent;
      background-color: transparent;
      background: url('@/assets/images/common-radio-h.png');
      background-size: 100% 100%;
    }
  }
}

.ant-select {
  // height: 100%;
  // min-height: 36px;
  box-shadow: 0 0 7px 1px rgba(33, 152, 235, 0.3) inset;
  border: 1px solid #1197f3;
  border-radius: 5px;
  background-color: transparent;
  background: none;
  &:not(.ant-select-customize-input) {
    .ant-select-selector {
      background-color: transparent;
      transition: none;
      border: none;
    }
  }
  .ant-select-arrow {
    color: #4fa6e5;
  }
}

// highlight
// background-color: rgba(255, 170, 0, 0.3) !important;
//     box-shadow: 0 0 20px 2px rgba(243, 205, 129, 0.47) inset;
//     color: #ffaa00;

.ant-select-dropdown {
  padding: 0;
  background-color: #0b4774;
  border-radius: 5px;
  top: 0;
  margin-top: -4px;

  border: 1px solid #4fa6e5;
  max-width: 450px;
  min-width: 100%;

  // 激活状态
  // background-color: rgba(255, 170, 0, 0.3);
  //   box-shadow: 0 0 20px 2px rgba(243, 205, 129, 0.47) inset;
  //   color: #ffaa00;
  .ant-select-item-option {
    // padding-left: 5px;
    border-radius: 0;
    color: #fff;
  }
  .ant-select-item-option-active {
    background-color: rgba(255, 170, 0, 0.3);
    box-shadow: 0 0 20px 2px rgba(243, 205, 129, 0.47) inset;
    color: #ffaa00;
  }
  .ant-select-item-option-selected {
    background-color: rgba(255, 170, 0, 0.3);
    box-shadow: 0 0 20px 2px rgba(243, 205, 129, 0.47) inset;
    color: #ffaa00;
    &:not(.ant-select-item-option-disabled) {
      background-color: rgba(255, 170, 0, 0.3);
      color: #ffaa00;
    }
  }
}
.ant-tree-select-dropdown {
  .ant-select-tree {
    background: transparent;
    .ant-select-tree-treenode {
      padding: 0;
      margin-bottom: 2px;
      width: 100%;
      &.ant-select-tree-treenode-selected {
        background-color: rgba(255, 170, 0, 0.3);
        box-shadow: 0 0 20px 2px rgba(243, 205, 129, 0.47) inset;
      }
      &:hover {
        background-color: rgba(255, 170, 0, 0.3);
        box-shadow: 0 0 20px 2px rgba(243, 205, 129, 0.47) inset;
        .ant-select-tree-node-content-wrapper {
          .ant-select-tree-title {
            color: #ffb317;
          }
        }
      }

      // 三角形
      &.ant-select-tree-treenode-switcher-close,
      &.ant-select-tree-treenode-switcher-open {
        .ant-select-tree-switcher {
          span {
            display: none;
          }
          &::before {
            transform: translate(-50%, -50%) rotate(0);
            transition: all 1s;
            content: '';
            position: absolute;
            width: 0;
            height: 0;
            left: 50%;
            top: 50%;
            border-left: 5px solid #56b8ff;
            border-top: 5px solid transparent;
            border-bottom: 5px solid transparent;
            margin-top: 2px;
            transition: transform 0.1s;
          }
        }
      }
      &.ant-select-tree-treenode-switcher-open {
        .ant-select-tree-switcher {
          &::before {
            transform: translate(-50%, -50%) rotate(45deg);
          }
        }
      }
      &.ant-select-tree-treenode-switcher-open {
        .ant-select-tree-switcher {
          &.ant-select-tree-switcher-noop {
            display: none;
          }
        }
      }
    }

    .ant-select-tree-node-content-wrapper {
      &.ant-select-tree-node-content-wrapper-open,
      &.ant-select-tree-node-selected,
      &.ant-select-tree-node-content-wrapper-normal {
        background-color: transparent;
        .ant-select-tree-title {
          color: #fff;
        }
      }

      &.ant-select-tree-node-selected {
        .ant-select-tree-title {
          color: #ffb317;
          font-size: 18px;
        }
      }
    }
    .ant-select-tree-checkbox {
      + span.ant-select-tree-node-selected {
        background-color: transparent;
      }
    }
  }
}

.ant-picker {
  background-color: transparent;
  box-shadow: 0 0 7px 1px rgba(33, 152, 235, 0.3) inset;
  border: 1px solid #1197f3;
  border-radius: 5px;
  padding: 4px 4px 4px 11px;
  .ant-picker-suffix {
    .anticon-calendar {
      svg {
        display: none;
      }
      &::before {
        content: '';
        width: 20px;
        height: 20px;
        background: url('@/assets/images/icon-datetime-n.png');
        background-size: 100% 100%;
        display: block;
      }
    }
  }
}

.ant-picker-dropdown {
  .ant-picker-cell-disabled {
  }
  .ant-picker-range-arrow::before {
    background-color: #0b4774;
    border: 1px solid #4fa6e5;
    bottom: -8px;
    width: 30px;
    height: 16px;
  }
  .ant-picker-panel-container {
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    border: 1px solid #4fa6e5;
    background-color: #0b4774;
    color: #d4edff;
    border-radius: 4px;
    // background-color: transparent;
    // box-shadow: none;
    .ant-picker-panel-has-range .ant-picker-panel-has-range-hover {
      .ant-picker-cell-in-view {
        &.ant-picker-cell-in-range,
        &.ant-picker-cell-range-hover,
        &.ant-picker-cell-range-start,
        &.ant-picker-cell-range-end,
        &.ant-picker-cell-range-hover-end,
        &.ant-picker-cell-range-hover-start {
          &::before {
            background: #409eff;
          }

          &.ant-picker-cell-today {
            &::before {
              background: #409eff;
              border: none;
            }
            .ant-picker-cell-inner {
              border: none;
              color: #fff;
              background: transparent;
            }
          }
        }
        &.ant-picker-cell-range-start:not(.ant-picker-cell-range-start-single),
        &.ant-picker-cell-range-end:not(.ant-picker-cell-range-end-single) {
          &::before {
            background: yellow;
          }
        }
      }
    }
  }
  .ant-picker-header {
    color: #fff;
    border-bottom: 1px solid #4fa6e5;
    button {
      color: #fff;
    }
  }
  .ant-picker-datetime-panel {
    .ant-picker-time-panel {
      border-inline-start: 1px solid #4fa6e5;
    }
  }
  .ant-picker-content {
    th {
      color: #fff;
    }
  }
  .ant-picker-cell {
    color: #c0c4cc;
  }
  &.ant-picker-cell-today {
    .ant-picker-cell-inner {
      &::before {
        border: none;
      }
      color: #409eff;
      font-weight: bold;
      &::before {
        border: none;
      }
    }
  }
  .ant-picker-cell-in-view {
    color: #fff;
    &.ant-picker-cell-selected,
    &.ant-picker-cell-range-start,
    &.ant-picker-cell-range-end {
      .ant-picker-cell-inner {
        border-radius: 50%;
        background-color: #409eff;
      }
    }
    &.ant-picker-cell-selected {
      &.ant-picker-cell-today {
        .ant-picker-cell-inner {
          &:hover {
            color: #fff;
          }
        }
      }
      .ant-picker-cell-inner {
        &:hover {
          color: #fff;
        }
      }
    }

    .ant-picker-cell-inner:hover {
      color: #fff;
    }
    &.ant-picker-cell-disabled {
      &::before {
        background: rgba(0, 0, 0, 0.2);
      }
    }
    &.ant-picker-cell-in-range {
      &::before {
        background: #409eff;
      }
      &.ant-picker-cell-range-hover,
      &.ant-picker-cell-range-start,
      &.ant-picker-cell-range-end,
      &.ant-picker-cell-range-hover-end,
      &.ant-picker-cell-range-hover-start,
      &.ant-picker-cell-today {
        &::before {
          background: #409eff;
          border: none;
        }
        .ant-picker-cell-inner {
          border: none;
          color: #fff;
        }
      }
    }
    &.ant-picker-cell-range-start:not(.ant-picker-cell-range-start-single),
    &.ant-picker-cell-range-end:not(.ant-picker-cell-range-end-single) {
      &::before {
        background: #409eff;
        border: none;
      }
    }
    &.ant-picker-cell-range-start:not(
        .ant-picker-cell-range-start-single
      ).ant-picker-cell-range-hover-start::before,
    &.ant-picker-cell-range-end:not(
        .ant-picker-cell-range-end-single
      ).ant-picker-cell-range-hover-end::before {
      background: #409eff;
    }
    &.ant-picker-cell-today {
      .ant-picker-cell-inner {
        &::before {
          border-radius: 50%;
        }
      }
    }
  }
  .ant-picker-panel {
    .ant-picker-footer {
      border-top: 1px solid #4fa6e5;
    }
  }
  .ant-picker-ranges {
    border-top: 1px solid #4fa6e5;
  }

  .ant-picker-time-panel-column:not(:first-child) {
    border-inline-start: 1px solid #4fa6e5;
  }

  .ant-picker-time-panel-column {
    scrollbar-width: none;
    scrollbar-color: transparent transparent;
    & > li.ant-picker-time-panel-cell {
      margin-inline: 0;
      .ant-picker-time-panel-cell-inner {
        color: #fff;
        width: 100%;
        border-radius: 0;
        padding-inline-start: 0;
        text-align: center;
        &:hover {
          background-color: #409eff;
        }
      }
    }
    & > li.ant-picker-time-panel-cell-selected {
      .ant-picker-time-panel-cell-inner {
        background-color: #409eff;
      }
    }
  }

  .ant-picker-ranges {
    justify-content: flex-end;
    .ant-picker-ok {
      margin-left: 20px;
      button {
        border-color: rgb(68, 160, 255);
        color: #d4edff;
        height: auto;
        padding: 2px 10px;
        border-radius: 3px;
      }
    }
  }
}

// 表单使用流式布局，默认宽度50%
.float-form{
  .ant-form-item{
    float:left;
    width: 50%;
  }
  // 左浮动 宽度50%
  .float-left-50 {
    float: left;
    width: 50%;
  }
  
  // 左浮动 宽度100%
  .float-left-100 {
    float: left;
    width: 100%;
  }
}

